﻿// --------------------------------------------------------------------------------------------------------------------
// <copyright file="ProfileSector.cs" company="DissingNellemann">
//   
// All rights reserved </copyright>
// <summary>
//   The profile sector.
// </summary>
// --------------------------------------------------------------------------------------------------------------------
namespace Website.Models.Domain
{
    using Website.Models.Base;

    /// <summary>
    ///     The profile sector.
    /// </summary>
    public class ProfileSector : Entity
    {
        #region Public Properties

        /// <summary>
        ///     Gets or sets the name.
        /// </summary>
        public string Name { get; set; }

        #endregion

        #region Public Methods and Operators

        /// <summary>
        /// The convert.
        /// </summary>
        /// <param name="dto">
        /// The dto.
        /// </param>
        /// <returns>
        /// The <see cref="ProfileSector"/>.
        /// </returns>
        public static ProfileSector Convert(CRUDServices.ProfileSector dto)
        {
            if (dto == null)
            {
                return null;
            }

            return new ProfileSector { ID = dto.ID, Name = dto.Name };
        }

        #endregion
    }
}